package com.qhg.saas_server.mapper;


import com.qhg.saas_server.pojo.Warehouse;
import com.qhg.saas_server.pojo.dto.WarehouseInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WarehouseMapper {
    //模糊查询名字和负责人
    List<WarehouseInfoDto> SelectWarehouse(@Param("wareName") String wareName, @Param("wareComploName") String wareComploName);
    //根据Id查询仓库
    WarehouseInfoDto SelectByIsd( Integer wareId);
    //添加仓库
    void InsertWarehouse( Warehouse warehouse);
    //修改状态
    void UpdateStatus(@Param("wareStatus") Integer wareStatus, @Param("wareId") Integer wareId);
    //修改仓库信息
    void UpdateWarehouse(Warehouse warehouse);
    //根据ID删除仓库信息
    void DeleteById(Integer wareId);
}
